﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1.bean
{
   public class packagebean
    {
        //节号
        private string _batch = "";
        public string batch {
            get { return _batch; }

            set { _batch = value; }
        }
        //包号
        private string _onum = "";
        public string onum
        {
            get { return _onum; }

            set { _onum = value; }
        }
        //包条码
        private string _pcode = "";
        public string pcode
        {
            get { return _pcode; }

            set { _pcode = value; }
        }
        //包id
        private string _pid = "";
        public String pid
        {
            get { return _pid; }

            set { _pid = value; }
        }
        //盘位置
        private string _pallet_id = "";
        public string pallet_id
        {
            get { return notnull(_pallet_id); }

            set { _pallet_id = value; }                                                                                              
        }
        //发货时间
        private string _deliver_time = "";
        public String deliver_time
        {
            get { return notnull(_deliver_time); }

            set { _deliver_time = value; }
        }
        //托盘周期id
        private string _pcpid = "";
        public String pcpid
        {
            get { return notnull(_pcpid); }

            set { _pcpid = value; }
        }
        //盘号
        private string _pallet_num = "";
        public String pallet_num
        {
            get { return notnull(_pallet_num); }

            set { _pallet_num = value; }
        }
        //临时仓位号
        private string _position_buffer = "";
        public String position_buffer
        {
            get { return notnull(_position_buffer); }

            set { _position_buffer = value; }
        }
        //组盘时间
        private string _zp_ctime = "";
        public String zp_ctime
        {
            get { return notnull(_zp_ctime); }

            set { _zp_ctime = value; }
        }
        //入仓时间
        private string _warehousing_time = "";
        public String warehousing_time
        {
            get { return notnull(_warehousing_time); }

            set { _warehousing_time = value; }
        }
        //包状态
        private string _status_name = "";
        public String status_name
        {
            get { return notnull(_status_name); }

            set { _status_name = value; }
        }
        //查询处按钮显示
        private string _chaxun_button = "";
        public String chaxun_button
        {
            get { return notnull(_chaxun_button); }

            set { _chaxun_button = value; }
        }
        public String notnull(String s)
        {
            if (s == null)
            {
                return "";
            }
            else {
                return s;
            }
        }



        public override string ToString()
        {
            return "batch=" + batch + "onum=" + onum + "pcode=" + pcode + "pid=" + pid + "pallet_id=" + pallet_id + "deliver_time=" + deliver_time + "warehousing_time=" + warehousing_time;
        }
    }
}
